From b611ddda5e73703268ca7e4e24fdebb81ea06dff Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 16 Feb 2013 19:51:46 +0100 Subject: [PATCH] messageTray: Close menu when clicking outside of the menu --- js/ui/messageTray.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 512cb53ad..4c8c13325 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1749,6 +1749,8 @@ const MessageTray = new Lang.Class({ let button = action.get_button(); if (button == 3) this._openContextMenu(); + if (button == 1 && this._contextMenu.isOpen) + this._grabHelper.ungrab({ actor: this._contextMenu.actor }); })); clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) { -- 2.39.5